package com.hope.service;

import com.hope.domain.dto.LoginFormDTO;
import com.hope.domain.dto.UserDTO;
import com.hope.domain.pojo.Result;
import com.hope.domain.pojo.User;
import jakarta.servlet.http.HttpServletResponse;

public interface UserService {
    Result getUserAllInfo(Long id);

    User login(LoginFormDTO user);

    int register(LoginFormDTO user);

    User findUserByName(String name);

    UserDTO findUserByUsername(String email);

    int forget(LoginFormDTO user);

    int sendCode(String username,String email);

    int verifyCode(String username,String email, String code);

    int edit(User user);

    Result refreshToken(String accessToken, HttpServletResponse response);

    Result getUserInfo(Long id);

    Result updateAvatar(String avatar,Long id);
}
